package com.zhisuo.apicenter.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class ZhiSuoUserAddressRowMapper implements RowMapper<ZhiSuoUserAddress> {

    @Override
    public ZhiSuoUserAddress mapRow(ResultSet rs, int rowNum) throws SQLException {
        ZhiSuoUserAddress user = new ZhiSuoUserAddress();
        user.setId(rs.getInt("id"));
        user.setStatus(rs.getInt("status"));
        user.setUserid(rs.getInt("userid"));
        user.setParkareabuildid(rs.getInt("parkareabuildid"));
        user.setFlag(rs.getInt("flag"));
        return user;
    }

}
